#include "MotorControl.h"

volatile uint16_t g_duty = 400;


void demo_h_bridge(void) {
    HBridge_Init();
    
    while(1) {
        HBridge_SetPwmDuty(&hstHBdg_1, g_duty);
        HBridge_SetPwmDuty(&hstHBdg_2, g_duty);
        HBridge_SetPwmDuty(&hstHBdg_3, g_duty);
        HBridge_SetPwmDuty(&hstHBdg_4, g_duty);
        
        HBridge_Update(&hstHBdg_1);
        HBridge_Update(&hstHBdg_2);
        HBridge_Update(&hstHBdg_3);
        HBridge_Update(&hstHBdg_4);
    }
}
